﻿<%@ Page Language="C#" MasterPageFile="~/masterpages/public.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="sample_Default" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
   <script src="http://www.google.com/jsapi" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">   
//        google.load("jquery", "1.2.3");
//        google.load("jqueryui", "1.5.3");
        google.load("prototype", "1.6");
//        google.load("scriptaculous", "1.8.2");
//        google.load("mootools", "1.2.1");
//        google.load("dojo", "1.2.3");
//        google.load("swfobject", "2.1");
//        google.load("yui", "2.6.0");
    </script>
    <style>
        body{ min-height:2000px;}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="test" style="background-color:green; width:30px; height:300px; position:absolute; top:200px; left:4px;"></div>
<script type="text/javascript">
    function Scroll(elementName,topOffset)
    {
        var arr = $(elementName).cumulativeScrollOffset();
        $(elementName).setStyle({ top: (arr[1]+topOffset).toString() + 'px'  });
    }
      
    var my_polling_prog = setInterval("Scroll('test',200)", 200);
</script>
</asp:Content>

